package com.lanou.zhihu.service.impl;

import com.lanou.zhihu.entity.Topic;
import com.lanou.zhihu.mapper.TopicMapper;
import com.lanou.zhihu.service.TopicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by QuChao on 2018/10/25.
 */
@Service
public class TopicServiceImpl implements TopicService {
    @Autowired
    private TopicMapper topicMapper;

    @Override
    public List<Topic> selectAll() {
        List<Topic> topicList = topicMapper.selectAll();
        return topicList;
    }

}
